package cn.signalpha.modules.base.vo;

import cn.signalpha.modules.base.entity.NoticeTemplate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 视图实体类
 *
 * @author signalpha
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "NoticeTemplateVO对象", description = "消息通知模板")
public class NoticeTemplateVO extends NoticeTemplate {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "公众号消息内容")
	private DetailDTO mp;
	@ApiModelProperty(value = "小程序消息内容")
	private DetailDTO ma;
	@ApiModelProperty(value = "短信消息内容")
	private DetailDTO sms;


	@Data
	public static class DetailDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@ApiModelProperty(value = "模板名称")
		private String name;
		@ApiModelProperty(value = "模板编号")
		private String code;
		@ApiModelProperty(value = "模板内容")
		private String content;
	}

}
